﻿namespace SKeeper.Persistence.Migrations
{
    using System.Data.Entity.Migrations;
    using Facade;

    public sealed class Configuration : DbMigrationsConfiguration<DomainModelFacade>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
        }

        protected override void Seed(DomainModelFacade context)
        {
            //var items = new List<Item>
            //{
            //    new Item { Id=1, Code = "123514", Name="Кока-Кола", Tax = Tax.B, Type = ProductType.Product },
            //    new Item { Id=2, Code = "123545", Name="Боранија", Tax = Tax.B, Type = ProductType.Product },
            //    new Item { Id=3, Code = "123514", Name="Мајонез", Tax = Tax.B, Type = ProductType.Product },
            //    new Item { Id=4, Code = "123514", Name="Тафтабити", Tax = Tax.B, Type = ProductType.Product },
            //};

            //context.Items.AddRange(items);

            //var storedItems = new List<StoredItem>
            //{
            //    new StoredItem { Id=1, ItemId = 1, LatestActivity = new DateTime(2015, 3,25), Quantity = 5, Unit = Units.Liter },
            //    new StoredItem { Id=2, ItemId = 2, LatestActivity = new DateTime(2015, 3,25), Quantity = 7, Unit = Units.Kilo },
            //    new StoredItem { Id=3, ItemId = 3, LatestActivity = new DateTime(2015, 3,25), Quantity = 9 ,Unit = Units.Kilo},
            //    new StoredItem { Id=4, ItemId = 4, LatestActivity = new DateTime(2015, 3,25), Quantity = 4,Unit = Units.Piece },
            //};

            //context.StoredItems.AddRange(storedItems);

            //base.Seed(context);
        }
    }
}
